package com.atguigu.work;

import com.sun.corba.se.impl.orb.ParserTable;

import javax.print.attribute.standard.MediaSize;

public class Test1 {
    public static void main(String[] args) {
        Other o = new Other();
        new Test1().addOne(o);
        System.out.println(o.i);
    }

    public void addOne(Other o) {
        o.i++;
    }
}

class Other {
    public int i;
}
